<template>
     <!-- 头部模块 -->
    <header class="header">
        <div class="loginbar">
            <div class="content w">
                <p>欢迎来到德清农村宅基地金融超市</p>
                <ul>
                    <li><a href="javascript:void(0)">个人用户注册</a>&nbsp;|&nbsp;</li>
                    <li><a href="javascript:void(0)">登录</a></li>
                    <li><img src="../assets/style/img/header_image/形状@3x (2).svg" alt=""> 手机版</li>
                </ul>
            </div>
        </div>
        <div class="search w">
            <div class="left">
                <img src="../assets/style/img/header_image/logo.svg" alt="德清宅基地抵押网">
                <div class="title">
                    <h3>德清宅基地抵押网</h3>
                    <p>Deqing homestead mortgage network</p>
                </div>
                <div class="map">德清县<span>[切换地区]</span></div>
            </div>
            <div class="center">
                <input type="text" placeholder="请输入您想要搜索的内容">
                <button>搜索</button>
            </div>
           <button class="wydy" @click="sendMsg();toGo()"><i class="icon-direction"></i> 我要抵押</button>
        </div>
    </header>
</template>

<script>
export default {
  name:'Header',
  data() {
    return {
      msg:false
    }
  },
  methods: {
    sendMsg(){
      // this.$emit('getMsg',this.msg)
      this.$store.commit('change',this.msg)
      // console.log(this.msg)

    },
    toGo(){
      this.$router.push({
        name:'Publish'
      })
    }
  },
}
</script>

<style lang='less' scoped>
.header{
  height: 118px;
  margin-bottom: 30px;
// loginbar模块
.loginbar{
  width: 100%;
  height: 34px;
  margin-bottom: 30px;
  background: #F2F2F2;
  .content{
    font-family: PingFangSC-Regular;
    font-size: 14px;
    font-weight: 400;
    p{
      display: inline-block;
      color: #333333;
      letter-spacing: 0;
      line-height: 34px;
    }
    ul{
      float: right;
      color: #666666;
      letter-spacing: 0.74px;
      
    }
    ul li{
      float: left;
      height: 20px;
      line-height: 34px;
    }
    ul li:nth-child(3){
      margin-left: 40px;
    }
    span{
      margin: 0 5px;
    }
  }
}
// search模块
.search{
  height: 54px;
  img{
    float: left;
  }
  .left{
    float: left;
    width: 390px;
    height: 100%;
    .title{
      float: left;
      margin: 0 20px 0 8px;
      h3{
        font-family: PingFangSC-Semibold;
        font-size: 26px;
        color: #EE384A;
        letter-spacing: 0;
        font-weight: 600;
      }
      p{
        font-family: PingFangSC-Regular;
        font-size: 12px;
        color: #888888;
        letter-spacing: -0.1px;
        font-weight: 400;
      }
    }
    .map{
      padding-top: 25px;
      font-family: PingFangSC-Semibold;
      font-size: 14px;
      color: #333333;
      letter-spacing: 0;
      line-height: 20px;
      font-weight: 600;
      span{
        font-family: PingFangSC-Regular;
        font-size: 12px;
        color: #EE384A;
        letter-spacing: 0;
        line-height: 20px;
        font-weight: 400;
      }
    }
    
  }
  .center{
    margin: 7px 0 7px 30px;
    float: left;
    width: 600px;
    height: 40px;
    input{
      width: 508px;
      height: 40px;
      font-size: 14px;
      padding-left: 12px;
      outline: none;
      background: #FFFFFF;
      border: 1px solid #E8E8E8;
    }
    button{
      float: right;
      width: 92px;
      height: 40px;
      border: none;
      outline: none;
      background: #EE384A;
      font-family: PingFangSC-Regular;
      font-size: 18px;
      color: #FFFFFF;
      letter-spacing: 0;
      font-weight: 400;
    }
  }
  .wydy{
    margin-top: 7px;
    float: right;
    width: 120px;
    height: 40px;
    background: #117EFF;
    font-size: 16px;
    color: #FFFFFF;
  }
}
}
</style>